package com.uls.hdh.vo;

import java.io.Serializable;
import java.util.Objects;

public class HdhPollsOptionsVo implements Serializable {
    private static final long serialVersionUID = 1L;


    private Long pollId;

    private String title;

    private String description;

    private Long optionId;

    private String optionText;

    private Integer isAnonymous;

    public Long getPollId() {
        return pollId;
    }

    public void setPollId(Long pollId) {
        this.pollId = pollId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getOptionId() {
        return optionId;
    }

    public void setOptionId(Long optionId) {
        this.optionId = optionId;
    }

    public String getOptionText() {
        return optionText;
    }

    public void setOptionText(String optionText) {
        this.optionText = optionText;
    }

    public Integer getIsAnonymous() {
        return isAnonymous;
    }

    public void setIsAnonymous(Integer isAnonymous) {
        this.isAnonymous = isAnonymous;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        HdhPollsOptionsVo that = (HdhPollsOptionsVo) o;
        return Objects.equals(pollId, that.pollId) &&
                Objects.equals(title, that.title) &&
                Objects.equals(description, that.description) &&
                Objects.equals(optionId, that.optionId) &&
                Objects.equals(optionText, that.optionText) &&
                Objects.equals(isAnonymous, that.isAnonymous);
    }

    @Override
    public int hashCode() {
        return Objects.hash(pollId, title, description, optionId, optionText, isAnonymous);
    }
}
